package com.scnb.proxy.v01;

import java.util.Random;

/**
 * 问题：想记录坦克的移动时间
 */

interface Movable {
    void move();
}

public class Tank implements Movable{
    //模拟坦克移动了一段时间
    @Override
    public void move() {
        System.out.println("Tank moving ....");
        try {
            Thread.sleep(new Random().nextInt(10000));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
